// 获取列表
export const getList = (axios, params) => {
	return axios({
		url: `/common/exhibitorShop/list`,
		method: 'get',
		params: params,
		headers: {
			isToken: false,
		},
	});
}

// 获取详情
export const getDetail = (axios, id) => {
	return axios({
		url: `/common/exhibitorShop/${id}`,
		method: 'get',
		params: {},
	});
}

// 展商店铺详情，通过展商ID
export const getByExhibitorId = (axios, id) => {
	return axios({
		url: `/common/exhibitorShop/getByExhibitorId/${id}`,
		method: 'get',
		params: {},
	});
}

// 获取绑定的展商详情
export const getBindExhibitor = (axios, params) => {
	return axios({
		url: `/auth/getBindExhibitor`,
		method: 'get',
		params: params,
	});
}

// 绑定展商
export const bindExhibitor = (axios, data) => {
	return axios({
		url: `/auth/bindExhibitor`,
		method: 'post',
		data: data,
	});
}

// 解绑展商
export const unbindExhibitor = (axios, data) => {
	return axios({
		url: `/auth/unbindExhibitor`,
		method: 'post',
		data: data,
	});
}
// 分享
export const share = (axios, id) => {
	return axios({
		url: `/exhibitorShop/share/${id}`,
		method: 'post',
		params: {},
	});
}